﻿namespace WMS6.Web.TransportMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="PodInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class PodInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string BolIDField;
        [OptionalField]
        private string CAddressField;
        [OptionalField]
        private string CarrierIDField;
        [OptionalField]
        private string ContactField;
        [OptionalField]
        private string CPhoneField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string CustomerIDField;
        [OptionalField]
        private string CustomerNameField;
        [OptionalField]
        private string DeliveryIDField;
        [OptionalField]
        private string DriverIDField;
        [OptionalField]
        private string EquipmentIDField;
        [OptionalField]
        private DateTime ExceptArriverdDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PickupTypeField;
        [OptionalField]
        private List<PodDetailInfo> PodDetailInfosField;
        [OptionalField]
        private string PodIDField;
        [OptionalField]
        private string PodimgField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SignedByField;
        [OptionalField]
        private DateTime SignedDateField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string TransportModeField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string Udf10Field;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string Udf6Field;
        [OptionalField]
        private string Udf7Field;
        [OptionalField]
        private string Udf8Field;
        [OptionalField]
        private string Udf9Field;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string BolID
        {
            get
            {
                return this.BolIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BolIDField, value))
                {
                    this.BolIDField = value;
                    this.RaisePropertyChanged("BolID");
                }
            }
        }

        [DataMember]
        public string CAddress
        {
            get
            {
                return this.CAddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CAddressField, value))
                {
                    this.CAddressField = value;
                    this.RaisePropertyChanged("CAddress");
                }
            }
        }

        [DataMember]
        public string CarrierID
        {
            get
            {
                return this.CarrierIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierIDField, value))
                {
                    this.CarrierIDField = value;
                    this.RaisePropertyChanged("CarrierID");
                }
            }
        }

        [DataMember]
        public string Contact
        {
            get
            {
                return this.ContactField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContactField, value))
                {
                    this.ContactField = value;
                    this.RaisePropertyChanged("Contact");
                }
            }
        }

        [DataMember]
        public string CPhone
        {
            get
            {
                return this.CPhoneField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CPhoneField, value))
                {
                    this.CPhoneField = value;
                    this.RaisePropertyChanged("CPhone");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string CustomerID
        {
            get
            {
                return this.CustomerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CustomerIDField, value))
                {
                    this.CustomerIDField = value;
                    this.RaisePropertyChanged("CustomerID");
                }
            }
        }

        [DataMember]
        public string CustomerName
        {
            get
            {
                return this.CustomerNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CustomerNameField, value))
                {
                    this.CustomerNameField = value;
                    this.RaisePropertyChanged("CustomerName");
                }
            }
        }

        [DataMember]
        public string DeliveryID
        {
            get
            {
                return this.DeliveryIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DeliveryIDField, value))
                {
                    this.DeliveryIDField = value;
                    this.RaisePropertyChanged("DeliveryID");
                }
            }
        }

        [DataMember]
        public string DriverID
        {
            get
            {
                return this.DriverIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DriverIDField, value))
                {
                    this.DriverIDField = value;
                    this.RaisePropertyChanged("DriverID");
                }
            }
        }

        [DataMember]
        public string EquipmentID
        {
            get
            {
                return this.EquipmentIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EquipmentIDField, value))
                {
                    this.EquipmentIDField = value;
                    this.RaisePropertyChanged("EquipmentID");
                }
            }
        }

        [DataMember]
        public DateTime ExceptArriverdDate
        {
            get
            {
                return this.ExceptArriverdDateField;
            }
            set
            {
                if (!this.ExceptArriverdDateField.Equals(value))
                {
                    this.ExceptArriverdDateField = value;
                    this.RaisePropertyChanged("ExceptArriverdDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PickupType
        {
            get
            {
                return this.PickupTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PickupTypeField, value))
                {
                    this.PickupTypeField = value;
                    this.RaisePropertyChanged("PickupType");
                }
            }
        }

        [DataMember]
        public List<PodDetailInfo> PodDetailInfos
        {
            get
            {
                return this.PodDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PodDetailInfosField, value))
                {
                    this.PodDetailInfosField = value;
                    this.RaisePropertyChanged("PodDetailInfos");
                }
            }
        }

        [DataMember]
        public string PodID
        {
            get
            {
                return this.PodIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PodIDField, value))
                {
                    this.PodIDField = value;
                    this.RaisePropertyChanged("PodID");
                }
            }
        }

        [DataMember]
        public string Podimg
        {
            get
            {
                return this.PodimgField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PodimgField, value))
                {
                    this.PodimgField = value;
                    this.RaisePropertyChanged("Podimg");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SignedBy
        {
            get
            {
                return this.SignedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SignedByField, value))
                {
                    this.SignedByField = value;
                    this.RaisePropertyChanged("SignedBy");
                }
            }
        }

        [DataMember]
        public DateTime SignedDate
        {
            get
            {
                return this.SignedDateField;
            }
            set
            {
                if (!this.SignedDateField.Equals(value))
                {
                    this.SignedDateField = value;
                    this.RaisePropertyChanged("SignedDate");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string TransportMode
        {
            get
            {
                return this.TransportModeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransportModeField, value))
                {
                    this.TransportModeField = value;
                    this.RaisePropertyChanged("TransportMode");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf10
        {
            get
            {
                return this.Udf10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf10Field, value))
                {
                    this.Udf10Field = value;
                    this.RaisePropertyChanged("Udf10");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string Udf6
        {
            get
            {
                return this.Udf6Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf6Field, value))
                {
                    this.Udf6Field = value;
                    this.RaisePropertyChanged("Udf6");
                }
            }
        }

        [DataMember]
        public string Udf7
        {
            get
            {
                return this.Udf7Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf7Field, value))
                {
                    this.Udf7Field = value;
                    this.RaisePropertyChanged("Udf7");
                }
            }
        }

        [DataMember]
        public string Udf8
        {
            get
            {
                return this.Udf8Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf8Field, value))
                {
                    this.Udf8Field = value;
                    this.RaisePropertyChanged("Udf8");
                }
            }
        }

        [DataMember]
        public string Udf9
        {
            get
            {
                return this.Udf9Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf9Field, value))
                {
                    this.Udf9Field = value;
                    this.RaisePropertyChanged("Udf9");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

